package com.hotel.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hotel.entity.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    /**
   	 * 获取全部角色或者按用户获取角色
   	 * @return(Integer userId,String choose,)
   	 */
   	List<Role> findRoleByUserId(@Param("userId")Integer userId,
   								@Param("pageNo")Integer pageNo,
   								@Param("pageSize")Integer pageSize);
}